export const download = (data, fileName) => {
    let blob = new Blob([data], ['application/vnd.ms-excel'])
    let downloadElement = document.createElement("a")
    let href = window.URL.createObjectURL(blob) //创建下载链接
    downloadElement.href = href
    downloadElement.download = decodeURIComponent(fileName) //解码
    document.body.appendChild(downloadElement)
    downloadElement.click()
    document.body.removeChild(downloadElement)
    window.URL.revokeObjectURL(href) //释放掉blob对象
}